package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Charts;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface ChartsMapper extends BaseMapper<Charts> {


    @Select("SELECT * FROM charts WHERE name = #{name}")
    Charts getByName(@Param("name") String name);

    @Select("SELECT * FROM charts")
    List<Charts> SelectAll();
}